package com.dong.com.love.api;

import com.dong.com.love.Bean.NewsPic;
import com.dong.com.love.Bean.ShowPic;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

/**
 * Created by Dong on 2016/10/31.
 */

public interface ApiService {

     //最新图片
     @GET(UrlConfig.NEWS_URL)
     Call<NewsPic> getNews();

     //图片详情
    @FormUrlEncoded
    @POST(UrlConfig.SHOW_URL)
     Call<ShowPic> getShow(@Field("id") long id);
}
